package com.hfstu.framework.bean;

import java.io.Serializable;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.google.common.collect.Lists;

@SuppressWarnings("all")
public class DataStore<T> implements Serializable {

	private long total = 0;
	private List<T> rows = Lists.newArrayList();// 有序的关联对象集合

	public DataStore() {
	}

	public DataStore(long total, List<T> rows) {
		this.total = total;
		this.rows = rows;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
